package com.lebang.mapper;

import com.lebang.entity.member.LbbMemberNotice;
import com.lebang.example.LbbMemberNoticeExample;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
@Repository
public interface LbbMemberNoticeMapper {
    long countByExample(LbbMemberNoticeExample example);

    int deleteByExample(LbbMemberNoticeExample example);

    int deleteByPrimaryKey(Long id);

    int insert(LbbMemberNotice record);

    int insertSelective(LbbMemberNotice record);

    List<LbbMemberNotice> selectbyexamplewithblobs(LbbMemberNoticeExample example);

    List<LbbMemberNotice> selectByExample(LbbMemberNoticeExample example);

    LbbMemberNotice selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") LbbMemberNotice record, @Param("example") LbbMemberNoticeExample example);

    int updatebyexamplewithblobs(@Param("record") LbbMemberNotice record, @Param("example") LbbMemberNoticeExample example);

    int updateByExample(@Param("record") LbbMemberNotice record, @Param("example") LbbMemberNoticeExample example);

    int updateByPrimaryKeySelective(LbbMemberNotice record);

    int updatebyprimarykeywithblobs(LbbMemberNotice record);

    int updateByPrimaryKey(LbbMemberNotice record);
    /**
     * 消息列表
     * @author weizx
     * @date 2018年7月26日 上午11:14:22
     * @param userid
     * @param appid
     * @param page
     * @param size
     * @return
     */
    List<Map<String, Object>> list(@Param("userid") String userid, @Param("appid") String appid,
                                   @Param("page") Integer page, @Param("size") Integer size);


    void updateByMemberId(@Param("memberId") String memberId);
}